﻿using System;
using System.Windows.Input;

namespace xCarLinkMP3Organizer
{
    public class LambdaViewCommmand : ICommand
    {
        private readonly Action<object> act_;

        public LambdaViewCommmand(Action<object> act)
        {
            act_ = act;
        }

        #region ICommand Members

        public void Execute(object parameter)
        {
            act_(parameter);
        }

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        #endregion
    }
}